import { create } from "zustand";

type State = {
  count: number;
};

type Action = {
  addCount: (count: State["count"]) => void;
};

const useStore = create<State & Action>((set) => ({
  count: 0,
  addCount: () => set((state) => ({ count: state.count + 1 })),
}));

export default useStore;
